package com.dingding.transfer.stamper.constant;

/**
 * @author wangxiyuan
 * @description
 * @createDate 2021/4/6 11:40
 **/
@Deprecated
public enum StamperDeviceMapper {
    STAMPER_17("印章(新17)","0X2900403339470B33303437");

    String deviceName;

    String uuid;

    StamperDeviceMapper(String deviceName,String uuid){
        this.deviceName =deviceName;
        this.uuid = uuid;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public String getUuid() {
        return uuid;
    }

    public static String getUuid(String deviceName){
        for (StamperDeviceMapper mapper :
                StamperDeviceMapper.values()) {
            if (mapper.getDeviceName().equals(deviceName)) {
                return mapper.getUuid();
            }
        }
        return null;
    }
}
